package text;

public class tostring {
    public static void main(String[] args) {
        System.out.println(new text());
    }
}
class text{
    public String name = "abc";
    public int age = 1;

    @Override
    public String toString() {
        return "text{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
